package net.huashitong.user.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegularExpressionsUtils {
	/**
	 * 手机号码校验
	 * @author: qigui.su
	 * @param username
	 * @return
	 */
	public static boolean phone(String username){
		Pattern	pattern = Pattern.compile("^[1][3-8]+\\d{9}");
		Matcher	matcher = pattern.matcher(username);
		return matcher.matches();
	}
}
